package com.example.app.components.MyIcon

import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.rounded.AddCircleOutline
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.vector.ImageVector
import com.example.app.components.MyButton.MyIconButton

@Composable
fun MyCircleAddIcon(
    imageVector: ImageVector = Icons.Rounded.AddCircleOutline,
    contentDescription: String? = "",
    modifier: Modifier = Modifier,
    //tint: Color = LocalContentColor.current
    tint: Color = MaterialTheme.colorScheme.outline,
    onClick: (() -> Unit)? = null
) {
    if (onClick != null) {
        MyIconButton(onClick = onClick) {
            MyIcon(
                imageVector,
                contentDescription,
                modifier,
                tint,
            )
        }
    } else {
        MyIcon(
            imageVector,
            contentDescription,
            modifier,
            tint,
        )
    }
}